package com.paradox.aggregation.provider.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("providers")
public class Providers implements Serializable {
    @TableId
    private int id;
    private String providerCode;
    private String providerName;
    private Date createTime;
    private Date updateTime=new Date();

    public Providers(){}

    public Providers(String providerCode, String providerName, Date createTime) {
        this.providerCode = providerCode;
        this.providerName = providerName;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Providers{" +
                "providerCode='" + providerCode + '\'' +
                ", providerName='" + providerName + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
